package com.onegroup.service;

import com.onegroup.pojo.*;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.Map;

/**
 * @author: 曾雪斌
 * @Description: 统一身份认证管理Service层
 * @History:
 */
public interface AuthenticationService {

    // 申报人员注册
    void registerApplication(Application application);

    // 申报人员账号登录
    ResponseResult<Map<String, String>> loginApplicationByPwd(String username, String password);

    // 申报人员验证码登录
    Application loginApplicationByPin(String email, String pin);

    // 财政相关人员登录
    Finance loginFinance(String username, String password);

    // 部门相关人员登录
    DeptHost loginDeptHost(String username, String password);

    // 专家登录
    Expert loginExpert(String username, String password);

    // 忘记密码
    void forgotPassword(String username, String idCard, String emailPin, String newPwd);

    ResponseResult<String> logoutApplication();
}
